<?php
namespace Portal\Model;

use Common\Model\CommonModel;

class IndexModel extends CommonModel {
	private   $_db = '';


	public function __construct()
	{
		$this->_db = M('userinfo');
	}

	//添加数据
	public function insert($data){
		if(!$data || !is_array($data)){
			return array();
		}
		return $this->_db->add($data);
	}

}